package com.renjian.funplaypro.services;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.renjian.funplaypro.mappers.UserMessageMapper;
import com.renjian.funplaypro.model.UserMessage;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

@Service
public class UserMessageService extends ServiceImpl<UserMessageMapper, UserMessage> {
    @Resource
    UserMessageMapper userMessageMapper;
    public List<UserMessage> getAllMsgs(Long userId,Integer type){
        return userMessageMapper.getAllMsgs(userId,type);
    }
}
